package com.vlin.entity.scene;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection = "vlin_automation")
public class Automation implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7650965910610146620L;

	@Id
	private String id;
	
	private int opened;
	
	private List<String> conditions = new ArrayList<String>();//条件
	
	private int operate;//or 还是 and
	
	private boolean timer;
	
	private String begin;
	
	private String end;
	
	private String repeate;
	
	private String img;
	
	private Map<Integer, String> commands = new HashMap<Integer, String>();
	

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public int getOpened() {
		return opened;
	}

	public void setOpened(int opened) {
		this.opened = opened;
	}

	public List<String> getConditions() {
		return conditions;
	}

	public void setConditions(List<String> conditions) {
		this.conditions = conditions;
	}

	public int getOperate() {
		return operate;
	}

	public void setOperate(int operate) {
		this.operate = operate;
	}

	public boolean isTimer() {
		return timer;
	}

	public void setTimer(boolean timer) {
		this.timer = timer;
	}

	public String getBegin() {
		return begin;
	}

	public void setBegin(String begin) {
		this.begin = begin;
	}

	public String getEnd() {
		return end;
	}

	public void setEnd(String end) {
		this.end = end;
	}

	public String getRepeate() {
		return repeate;
	}

	public void setRepeate(String repeate) {
		this.repeate = repeate;
	}

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	
	public Map<Integer, String> getCommands() {
		return commands;
	}

	public void setCommands(Map<Integer, String> commands) {
		this.commands = commands;
	}
	
}
